import axios from "axios";
axios.defaults.baseURL = "http://127.0.0.1:5000";
export const login = (params) => axios.post("/users/checkLogin", params);
export const addUser = (params) => axios.post("/users/add", params);
export const reUsers = (params) => axios.get("/users/list", { params });
export const removeUser = (params) => axios.get("/users/del", { params });
export const removeMore = (params) => axios.get("/users/batchdel", { params });
export const oldPwd = (params) => axios.get("/users/checkoldpwd", { params });
export const editpwd = (params) => axios.post("/users/editpwd", params);
export const accountinfo = (params) =>
  axios.get("/users/accountinfo", { params });
export const edit = (params) => axios.post("/users/edit", params);
export const checktoken = (params) =>
  axios.get("/users/checktoken", { params });
